/*
 * Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.okbihuo.perm.constants;

/**
 * Created by WeDon'tCare on 2018/5/16
 */
public class RegexDefine {
    // 手机号码正则
    public static final String REGEX_PHONE = "^[1][2,3,4,5,6,7,8][0-9]{9}$";
    // 邮箱正则
    public static final String REGEX_EMAIL = "^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$";
    // QQ正则
    public static final String REGEX_QQ = "^[1-9][0-9]{4,}$";
    // 身份证正则
    public static final String REGEX_IDCARD = "^(^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$)|(^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])((\\d{4})|\\d{3}[Xx])$)$";
    // 数字正则
    public static final String REGEX_NUMBER = "^([1-9]+[0-9]*$";
    // 汉字正则
    public static final String REGEX_CHINESE = "^[u4e00-u9fa5]+$";
    //uuid正则
    public static final String REGEX_UUID = "^[a-f\\d]{8}(-[a-f\\d]{4}){3}-[a-f\\d]{12}?$";

}
